﻿// 
// Copyright SmartFormat Project maintainers and contributors.
// Licensed under the MIT license.

using System;

namespace SmartFormat.Core.Settings;

/// <summary>
/// Determines how format errors are handled.
/// </summary>
[Obsolete("Use 'ParseErrorAction' or 'FormatErrorAction' instead.", true)]
public enum ErrorAction
{
    /// <summary>Throws an exception. This is only recommended for debugging, so that formatting errors can be easily found.</summary>
    ThrowError,

    /// <summary>Includes an issue message in the output</summary>
    OutputErrorInResult,

    /// <summary>Ignores errors and tries to output the data anyway</summary>
    Ignore,

    /// <summary>Leaves invalid tokens unmodified in the text.</summary>
    MaintainTokens
}